<template>
  <div>
    <van-button type="primary" style="margin: 10px ;">主要按钮</van-button>
    <van-slider v-model="value" @change="onChange" />
  </div>
</template>
<script setup lang="ts">
import { Toast } from 'vant';
const value = ref(50);
const onChange = (value:string) => Toast("当前值：" + value);
</script>
